package annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class PersonTest {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("annotation.xml");
		Person p = ac.getBean("person",Person.class);
		Person p2 = ac.getBean("person",Person.class);
		System.out.println(p);
		System.out.println(p2);
	}
}
